﻿using Microsoft.Extensions.Logging;

namespace Micro.Extensions.Utilities
{
    public static class AssemblyExtensions
    {
        public static void LogAssemblyInfo(this ILogger logger, AssemblyInfo assemblyInfo)
        {
            logger.Log(LogLevel.Information, new EventId(-100, "Assembly"), assemblyInfo.ToJson());
        }
    }

    public class AssemblyInfo
    {
        public string Name { get; set; }

        public string Version { get; set; }

        public string CodeBase { get; set; }
    }
}
